<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Math数学对象</title>
    
</head>
<body>
    <script type="text/javascript">
        console.log(Math)
        var arr = [1,2,3,45,6,7,213,34,65,45];
        console.log(Math.max.apply(null,arr));
        console.log(Math.min.apply(null,arr));

        // ceil floor round
        var num = 23.4;
        // 天花板函数
        console.log(Math.ceil(num));
        // 地板函数
        console.log(Math.floor(num));
        // 标准四舍五入函数
        console.log(Math.round(num));

        // 随机数
        console.log(Math.random())
    </script>
</body>
</html>